package com.vecharm.app.api

import com.vecharm.app.bean.GoodsBean
import com.vecharm.app.bean.SessionBean
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
import rx.Observable

interface API {
    @POST(value = "app/getSession")
    fun getSession(): Observable<SessionBean>


    @FormUrlEncoded
    @POST(value = "app/getGoods")
    fun getGoods(@Field("version") version: Int): Observable<GoodsBean>

}